﻿using Framework.Core.BootStrapper;
using Framework.Remoting.Hosting;
using log4net;

namespace Framework.Wcf.ServiceImplementation
{
    /// <summary>
    /// /p:WcfHost /c /Env:Prod
    /// /p:WcfHost /i /n:WcfHost /dn:"Windows Service Wcf Hosting" /a:{/p:WcfHost,/Env:Prod}
    /// /p:WcfHost /i /a:{/p:WcfHost,/Env:Prod}
    /// /p:WcfHost /u /n:WcfHost
    /// /p:WcfHost /u
    /// </summary>
    internal static class Program
    {
        private static readonly ILog Logger = LogManager.GetLogger(typeof(Program));

        internal static IBootStrapper BootStrapper { get; set; }

        static Program()
        {
            BootStrapper = new BootStrapper();
        }

        public static void Main(string[] args)
        {
            Logger.Info("Bootstrapping WcfHost");

            BootStrapper.Add<WcfHost>().Start(args);
        }
    }
}
